package com.sugar.follow.up.module.business.service.followuprecord;

import com.sugar.follow.up.framework.common.pojo.PageResult;
import com.sugar.follow.up.module.business.controller.admin.followuprecord.vo.FollowUpRecordDetailRespVO;
import com.sugar.follow.up.module.business.controller.admin.followuprecord.vo.FollowUpRecordPageReqVO;
import com.sugar.follow.up.module.business.controller.admin.followuprecord.vo.FollowUpRecordRespVO;
import com.sugar.follow.up.module.business.controller.admin.followuprecord.vo.FollowUpRecordSaveReqVO;

import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.io.IOException;
import java.util.List;

/**
 * 随访发起记录 Service 接口
 *
 * @author Ysugar
 */
public interface FollowUpRecordService {

    /**
     * 创建随访发起记录
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    void createFollowUpRecord(@Valid FollowUpRecordSaveReqVO createReqVO, Long adminUserId);

    /**
     * 更新随访发起记录
     *
     * @param updateReqVO 更新信息
     */
    void updateFollowUpRecord(@Valid FollowUpRecordSaveReqVO updateReqVO);

    /**
     * 删除随访发起记录
     *
     * @param id 编号
     */
    void deleteFollowUpRecord(Long id);

    /**
    * 批量删除随访发起记录
    *
    * @param ids 编号
    */
    void deleteFollowUpRecordListByIds(List<Long> ids);

    /**
     * 获得随访发起记录
     *
     * @param id 编号
     * @return 随访发起记录
     */
    FollowUpRecordDetailRespVO getFollowUpRecord(Long id);

    /**
     * 获得随访发起记录分页
     *
     * @param pageReqVO 分页查询
     * @return 随访发起记录分页
     */
    PageResult<FollowUpRecordRespVO> getFollowUpRecordPage(FollowUpRecordPageReqVO pageReqVO);

    void exportFollowUpRecordExcel(FollowUpRecordPageReqVO pageReqVO, HttpServletResponse response) throws IOException;
}